<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    <table border=1px style="margin: 0 auto">
    <tr>
        <td>姓名</td>
        <td>班级</td>
    </tr>
    {% for stu in stus %}
        <tr>

            <td>{{ stu.sname }}<input type="text" name="sname"></td>
            <td>{{ stu.clazz.cname }}<input type="text" name="cname"></td>
        </tr>
    {% endfor %}
<button>提交</button>


</table>
</form>

</body>
</html>